package se.kth.id2212.market;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.ResultSet;
import se.kth.id2212.bankjdbc.Bank;
import se.kth.id2212.bankjdbc.RejectedException;

public interface Market extends Remote {

    public Trader newTrader(String name, String password, Bank bankobj) throws RemoteException, RejectedException;

    //public Trader getTrader(String name) throws RemoteException;

    public boolean deleteTrader(String name) throws RemoteException;

    public Trader logIn(String name, String password, Bank bankobj) throws RemoteException, RejectedException;

    public ResultSet allItem() throws RemoteException;
}
